* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --clr: #14161e;
}

body {
    min-height: 100vh;
    background-color: var(--clr);
}

.sidebar {
    position: absolute;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    transition: 0.5s;
    padding-left: 10px;
    overflow: hidden;
}

.sidebar.active {
    width: 80px;
}

.sidebar ul {
    position: relative;
    height: 100vh;
}

.sidebar ul li {
    position: relative;
    list-style: none;
}

.sidebar ul li.active {
    background-color: var(--clr);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.sidebar ul li.active::before {
    z-index: 0;
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 5px 5px 0 5px var(--clr);
    background: transparent;
}

.sidebar ul li.active::after {
    z-index: 0;
    content: '';
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 20px;
    height: 20px;
    border-top-right-radius: 20px;
    box-shadow: 5px -5px 0 5px var(--clr);
    background: transparent;
}

.sidebar ul li#logo {
    display: inline-block;
    margin-bottom: 50px;
}

.sidebar ul li#logo .text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--clr);
}

.sidebar ul li a {
    position: relative;
    display: flex;
    white-space: nowrap;
    text-decoration: none;
}

.sidebar ul li a .icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    min-width: 60px;
    font-size: 1.5em;
    color: var(--clr);
    transition: 0.5s;
}

.sidebar ul li.active a .icon {
    z-index: 100;
    position: relative;
    color: #fff;
}

.sidebar ul li.active a .text {
    color: var(--bg);
}

.sidebar ul li.active a .icon::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--bg);
    border-radius: 50%;
    transition: 0.5s;
}

.sidebar ul li:hover.active a .icon::before {
    background: #fff;
}

.sidebar ul li a .text {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    font-size: 1em;
    color: var(--clr);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

.sidebar ul li:hover a .icon,
.sidebar ul li:hover a .text {
    color: var(--bg);
}

.bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.bottom li:last-child:hover {
    transition: .5s;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    background-color: var(--clr);
}

.bottom li:last-child:hover span ion-icon, 
.bottom li:last-child:hover span.text {
    color: white;
}

.imgBox {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.imgBox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menuToggle {
    min-width: 60px;
    height: 70px;
    background: transparent;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menuToggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: var(--clr);
    transform: translateY(-9px);
    transition: 0.5s;
    box-shadow: 0 9px 0 var(--clr);
}

.menuToggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: var(--clr);
    transform: translateY(9px);
    transition: 0.5s;
}

.menuToggle.active::before {
    transform: translateY(0px) rotate(45deg);
    box-shadow: 0 0 0 var(--clr);
}

.menuToggle.active::after {
    transform: translateY(0px) rotate(-45deg);
}

.main {
    position: relative;
    margin-left: 300px;
    width: calc(100% - 300px);
    height: 100vh;
    transition: 0.5s;
}

.main.active {
    margin-left: 80px;
    width: calc(100% - 80px);
}